Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit d5630d72de370738ffff3717e525a8a3f61b021f


Parents : aae1377
Author : Mark Qvist <mark@unsigned.io>
Date : 2024-03-25T19:32:03+01:00

Fixed message texture size logic

Changes

1 files changed, 1 insertions(+), 1 deletions(-)


Diff

diff --git a/sbapp/ui/messages.py b/sbapp/ui/messages.py
index 51cd7275..e8023661 100644
--- a/sbapp/ui/messages.py
+++ b/sbapp/ui/messages.py
@@ -411,7 +411,7 @@ class Messages():
def check_textures(w, val):
try:
- if w.texture_size[1] > 360 and w.texture_size[1] >= self.max_texture_size:
+ if w.texture_size[0] > 360 and w.texture_size[1] >= self.max_texture_size:
w.text = "[i]The content of this message is too large to display in the message stream. You can copy the message content into another program by using the context menu of this message, and selecting [b]Copy[/b].[/i]"
if w.owner.has_image:


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────